package com.Jack.Test;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.regex.Pattern;

import jxl.Sheet;
import jxl.Workbook;
import jxl.read.biff.BiffException;



public class Map {
	public static void main(String[] args) {
		//java.util.Map<K, V>
		
		/*SimpleDateFormat sdf= new SimpleDateFormat("yyyy/MM/dd");
		
		String d=sdf.format(new Date());
		System.out.println(d+" "+"11:00:00");
		
		SimpleDateFormat df= new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
		try {
			Date date=df.parse(d+" "+"11:00:00");
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		*/
		
		/*StringBuffer notes = new StringBuffer();
		notes.append("");
		System.out.println(notes.toString());*/
		
		/*FileInputStream file;
		try {
			file = new FileInputStream("D:\\software\\jboss-as-7.1.1.Final\\standalone\\deployments\\rtxextend.war\\upload\\tmp\\HG_receipttest_imp_201763194817.xls");
			Workbook book;
			try {
				book = Workbook.getWorkbook(file);
				Sheet sheet = book.getSheet(0);
				int column = sheet.getColumns();
				System.out.println(column);
			} catch (BiffException e) {
				e.printStackTrace();
			} catch (IOException e) {
				e.printStackTrace();
			}
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}*/
		
		
		System.out.println(isNumeric("qqq"));
		
	}
	
	public static boolean isNumeric(String str) {
		Pattern pattern = Pattern.compile("[0-9]*");
		return pattern.matcher(str).matches();
	}
}
